#include<stdio.h>
#include<string.h>
#include<unistd.h>
const char part='#';
int main()
{
    char bar[101]={0};
    int i=0;
    while(i<=100)
    {
	printf("[%-100s][%d%%]\r",bar,i);    
        fflush(stdout);
	bar[i]=part;
        i++;
       usleep(50000);
    }
    printf("\n");
    return 0;
}
